home *** CD-ROM | disk | FTP | other *** search
-
-
-
- GGGGRRRROOOOFFFFFFFF____FFFFOOOONNNNTTTT((((5555)))) GGGGrrrrooooffffffff VVVVeeeerrrrssssiiiioooonnnn 1111....00009999 ((((00004444 MMMMaaaarrrrcccchhhh 1111999999994444)))) GGGGRRRROOOOFFFFFFFF____FFFFOOOONNNNTTTT((((5555))))
-
-
-
- NNNNAAAAMMMMEEEE
- groff_font - format of groff device and font description
- files
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The groff font format is roughly a superset of the ditroff
- font format. Unlike the ditroff font format, there is no
- associated binary format. The font files for device _n_a_m_e
- are stored in a directory ddddeeeevvvv_n_a_m_e. There are two types of
- file: a device description file called DDDDEEEESSSSCCCC and for each
- font _F a font file called _F. These are text files; there is
- no associated binary format.
-
- DDDDEEEESSSSCCCC ffffiiiilllleeee ffffoooorrrrmmmmaaaatttt
- The DESC file can contain the following types of line:
-
- rrrreeeessss _n
- There are _n machine units per inch.
-
- hhhhoooorrrr _n
- The horizontal resolution is _n machine units.
-
- vvvveeeerrrrtttt _n
- The vertical resolution is _n machine units.
-
- ssssiiiizzzzeeeessssccccaaaalllleeee _n
- The scale factor for pointsizes. By default this has a
- value of 1. One _s_c_a_l_e_d _p_o_i_n_t is equal to one point/_n.
- The arguments to the uuuunnnniiiittttwwwwiiiiddddtttthhhh and ssssiiiizzzzeeeessss commands are
- given in scaled points.
-
- uuuunnnniiiittttwwwwiiiiddddtttthhhh _n
- Quantities in the font files are given in machine units
- for fonts whose point size is _n scaled points.
-
- ttttccccoooommmmmmmmaaaannnndddd
- This means that the postprocessor can handle the tttt and
- uuuu output commands.
-
- ssssiiiizzzzeeeessss _s_1 _s_2..._s_n 0000
- This means that the device has fonts at _s_1, _s_2,..._s_n
- scaled points. The list of sizes must be terminated by
- a 0000. Each ssss_i can also be a range of sizes _m-_n. The
- list can extend over more than one line.
-
- ssssttttyyyylllleeeessss _S_1 _S_2..._S_m
- The first _m font positions will be associated with
- styles _S_1..._S_m.
-
- ffffoooonnnnttttssss _n _F_1 _F_2 _F_3..._F_n
- Fonts _F_1..._F_n will be mounted in the font positions
- _m+1,...,_m+_n where _m is the number of styles. This
-
-
-
- Page 1 (printed 7/8/94)
-
-
-
-
-
-
- GGGGRRRROOOOFFFFFFFF____FFFFOOOONNNNTTTT((((5555)))) GGGGrrrrooooffffffff VVVVeeeerrrrssssiiiioooonnnn 1111....00009999 ((((00004444 MMMMaaaarrrrcccchhhh 1111999999994444)))) GGGGRRRROOOOFFFFFFFF____FFFFOOOONNNNTTTT((((5555))))
-
-
-
- command may extend over more than one line. A font
- name of 0000 will cause no font to be mounted on the
- corresponding font position.
-
- ffffaaaammmmiiiillllyyyy _f_a_m
- The default font family is _f_a_m.
-
- cccchhhhaaaarrrrsssseeeetttt
- This line and everything following in the file are
- ignored. It is allowed for the sake of backwards
- compatibility.
-
- The res, unitwidth, fonts and sizes lines are compulsory.
- Other commands are ignored by ttttrrrrooooffffffff but may be used by
- postprocessors to store arbitrary information about the
- device in the DESC file.
-
- FFFFoooonnnntttt ffffiiiilllleeee ffffoooorrrrmmmmaaaatttt
- A font file has two sections. The first section is a
- sequence of lines each containing a sequence of blank
- delimited words; the first word in the line is a key, and
- subsequent words give a value for that key.
-
- nnnnaaaammmmeeee _F
- The name of the font is _F.
-
- ssssppppaaaacccceeeewwwwiiiiddddtttthhhh _n
- The normal width of a space is _n.
-
- ssssllllaaaannnntttt _n
- The characters of the font have a slant of _n degrees.
- (Positive means forward.)
-
- lllliiiiggggaaaattttuuuurrrreeeessss _l_i_g_1 _l_i_g_2..._l_i_g_n [0000]
- Characters _l_i_g_1, _l_i_g_2,...,_l_i_g_n are ligatures; possible
- ligatures are ffffffff, ffffiiii, ffffllll and ffffffffllll. For backwards
- compatibility, the list of ligatures may be terminated
- with a 0000.... The list of ligatures may not extend over
- more than one line.
-
- ssssppppeeeecccciiiiaaaallll
- The font is _s_p_e_c_i_a_l; this means that when a character
- is requested that is not present in the current font,
- it will be searched for in any special fonts that are
- mounted.
-
- Other commands are ignored by ttttrrrrooooffffffff but may be used by
- postprocessors to store arbitrary information about the font
- in the font file.
-
- The first section can contain comments which start with the
- #### character and extend to the end of a line.
-
-
-
- Page 2 (printed 7/8/94)
-
-
-
-
-
-
- GGGGRRRROOOOFFFFFFFF____FFFFOOOONNNNTTTT((((5555)))) GGGGrrrrooooffffffff VVVVeeeerrrrssssiiiioooonnnn 1111....00009999 ((((00004444 MMMMaaaarrrrcccchhhh 1111999999994444)))) GGGGRRRROOOOFFFFFFFF____FFFFOOOONNNNTTTT((((5555))))
-
-
-
- The second section contains one or two subsections. It must
- contain a _c_h_a_r_s_e_t subsection and it may also contain a
- _k_e_r_n_p_a_i_r_s subsection. These subsections can appear in any
- order. Each subsection starts with a word on a line by
- itself.
-
- The word cccchhhhaaaarrrrsssseeeetttt starts the charset subsection. The cccchhhhaaaarrrrsssseeeetttt
- line is followed by a sequence of lines. Each line gives
- information for one character. A line comprises a number of
- fields separated by blanks or tabs. The format is
-
- _n_a_m_e _m_e_t_r_i_c_s _t_y_p_e _c_o_d_e _c_o_m_m_e_n_t
-
- _n_a_m_e identifies the character: if _n_a_m_e is a single character
- _c then it corresponds to the groff input character _c; if it
- is of the form \\\\_c where c is a single character, then it
- corresponds to the groff input character \\\\_c; otherwise it
- corresponds to the groff input character \\\\[[[[_n_a_m_e]]]] (if it is
- exactly two characters _x_x it can be entered as \\\\((((_x_x.) Groff
- supports eight bit characters; however some utilities has
- difficulties with eight bit characters. For this reason,
- there is a convention that the name cccchhhhaaaarrrr_n is equivalent to
- the single character whose code is _n . For example, cccchhhhaaaarrrr111166663333
- would be equivalent to the character with code 163 which is
- the pounds sterling sign in ISO Latin-1. The name ------------ is
- special and indicates that the character is unnamed; such
- characters can only be used by means of the \\\\NNNN escape
- sequence in ttttrrrrooooffffffff.
-
- The _t_y_p_e field gives the character type:
-
- 1 means the character has an descender, for example, p;
-
- 2 means the character has an ascender, for example, b;
-
- 3 means the character has both an ascender and a
- descender, for example, (.
-
- The _c_o_d_e field gives the code which the postprocessor uses
- to print the character. The character can also be input to
- groff using this code by means of the \\\\NNNN escape sequence.
- The code can be any integer. If it starts with a 0000 it will
- be interpreted as octal; if it starts with 0000xxxx or 0000XXXX it will
- be intepreted as hexadecimal.
-
- Anything on the line after the code field will be ignored.
-
- The _m_e_t_r_i_c_s field has the form:
-
- _w_i_d_t_h[,,,,_h_e_i_g_h_t[,,,,_d_e_p_t_h[,,,,
-
- There must not be any spaces between these subfields.
-
-
-
- Page 3 (printed 7/8/94)
-
-
-
-
-
-
- GGGGRRRROOOOFFFFFFFF____FFFFOOOONNNNTTTT((((5555)))) GGGGrrrrooooffffffff VVVVeeeerrrrssssiiiioooonnnn 1111....00009999 ((((00004444 MMMMaaaarrrrcccchhhh 1111999999994444)))) GGGGRRRROOOOFFFFFFFF____FFFFOOOONNNNTTTT((((5555))))
-
-
-
- Missing subfields are assumed to be 0. The subfields are
- all decimal integers. Since there is no associated binary
- format, these values are not required to fit into a variable
- of type cccchhhhaaaarrrr as they are in ditroff. The _w_i_d_t_h subfields
- gives the width of the character. The _h_e_i_g_h_t subfield gives
- the height of the character (upwards is positive); if a
- character does not extend above the baseline, it should be
- given a zero height, rather than a negative height. The
- _d_e_p_t_h subfield gives the depth of the character, that is,
- the distance below the lowest point below the baseline to
- which the character extends (downwards is positive); if a
- character does not extend below above the baseline, it
- should be given a zero depth, rather than a negative depth.
- The _i_t_a_l_i_c__c_o_r_r_e_c_t_i_o_n subfield gives the amount of space
- that should be added after the character when it is
- immediately to be followed by a character from a roman font.
- The _l_e_f_t__i_t_a_l_i_c__c_o_r_r_e_c_t_i_o_n subfield gives the amount of
- space that should be added before the character when it is
- immediately to be preceded by a character from a roman font.
- The _s_u_b_s_c_r_i_p_t__c_o_r_r_e_c_t_i_o_n gives the amount of space that
- should be added after a character before adding a subscript.
- This should be less than the italic correction.
-
- A line in the charset section can also have the format
-
- _n_a_m_e """"
-
- This indicates that _n_a_m_e is just another name for the
- character mentioned in the preceding line.
-
- The word kkkkeeeerrrrnnnnppppaaaaiiiirrrrssss starts the kernpairs section. This
- contains a sequence of lines of the form:
-
- _c_1 _c_2 _n
-
- This means that when character _c_1 appears next to character
- _c_2 the space between them should be increased by _n. Most
- entries in kernpairs section will have a negative value for
- _n.
-
- FFFFIIIILLLLEEEESSSS
- ////uuuussssrrrr////sssskkkkuuuunnnnkkkk////lllliiiibbbb////ggggrrrrooooffffffff////ffffoooonnnntttt////ddddeeeevvvv_n_a_m_e////DDDDEEEESSSSCCCC
- Device description file for device _n_a_m_e.
-
- ////uuuussssrrrr////sssskkkkuuuunnnnkkkk////lllliiiibbbb////ggggrrrrooooffffffff////ffffoooonnnntttt////ddddeeeevvvv_n_a_m_e////_F
- Font file for font _F of device _n_a_m_e.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- ggggrrrrooooffffffff____oooouuuutttt(5), ggggttttrrrrooooffffffff(1).
-
-
-
-
-
-
- Page 4 (printed 7/8/94)
-
-
-
-